package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-search")    //指定要远程调用哪个服务
public interface SearchFeignService {
    //保存数据到es
    @PostMapping("/search/save/product")    //指定要远程调用服务下的哪个方法
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
